import java.util.Scanner;

public class HomeWork14_03{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        
        String command;
        do{
            System.out.print("please enter command: ");
            command = scan.next();
            CheckInput.checkInput(command);
        }while(!command.toUpperCase().equals("EXIT"));
    }
}

class CheckInput{
    public static void checkInput(String command){
        switch(command.toUpperCase().charAt(0)){
            case 'B':
                System.out.println(command);
            case 'A':
                System.out.println(command);
                break;
        }
    }
}